package com.ysm.smfu.holder;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import com.ysm.smfu.R;
import com.zhy.autolayout.utils.AutoUtils;

/**
 * Created by Administrator on 2017/4/5.
 */
public class OrderPsdHolder extends RecyclerView.ViewHolder {

    private final TextView psdName;
    private final TextView psdNum;

    public OrderPsdHolder(View itemView) {
        super(itemView);
        psdName = (TextView) itemView.findViewById(R.id.psdName);
        psdNum = (TextView) itemView.findViewById(R.id.psdNum);
        AutoUtils.autoSize(itemView);
    }

    public void setData(int position, String str) {
        psdName.setText("密码" + position + ":");
        psdNum.setText(str);
    }
}
